/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.web.entity;

import com.jeeplus.modules.web.entity.YjEquipment;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 设备更换记录Entity
 * @author rongjie
 * @version 2017-09-19
 */
public class WxEquipmentAddress extends DataEntity<WxEquipmentAddress> {
	
	private static final long serialVersionUID = 1L;
	private YjEquipment equipment;		// 设备号
	private String address;		// 原地址
	private String endAddress;		// 新地址
	private Date time;		// 修改时间
	
	public WxEquipmentAddress() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}

	public WxEquipmentAddress(String id){
		super(id);
	}

	@ExcelField(title="设备号", fieldType=YjEquipment.class, value="equipment.number", align=2, sort=3)
	public YjEquipment getEquipment() {
		return equipment;
	}

	public void setEquipment(YjEquipment equipment) {
		this.equipment = equipment;
	}
	
	@ExcelField(title="原地址", align=2, sort=4)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@ExcelField(title="新地址", align=2, sort=5)
	public String getEndAddress() {
		return endAddress;
	}

	public void setEndAddress(String endAddress) {
		this.endAddress = endAddress;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="修改时间", align=2, sort=6)
	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}
	
}